// pages/mine/mine.js
//获取应用实例
const app = getApp()
Page({
  data: {
    userInfo: null,
    menulists: [{
      row: 1,
      submenu: [{
        name: '我的积分',
        image: '../../image/luffy.jpg',
        method: 'toIntegral'
      },
      {
        name: '理想三旬',
        image: '../../image/avatar.jpg',
        method: 'toIntegrals'
      },
      {
        name: '理想三旬',
        image: '../../image/avatar.jpg',
        method: 'toIntegrals'
      }
      ]
    }, {
      row: 2,
      submenu: [{
        name: '理想三旬',
        image: '../../image/avatar.jpg',
        method: 'toIntegrals'
      },
      {
        name: '理想三旬',
        image: '../../image/avatar.jpg',
        method: 'toIntegrals'
      },
      {
        name: '理想三旬',
        image: '../../image/avatar.jpg',
        method: 'toIntegrals'
      }
      ]
    }]
  },
  onLoad() {
    this.setData({
      userInfo: app.globalData.userInfo
    })
  },
  //我的积分
  toIntegral() {
    console.log("--------我的积分-------")
    wx.navigateTo({
      url: '../../pages/subPages/integral/integral'
    })
  }
})